<br/>

<h2>Tạo Tin Mới</h2>

<br/>

<?php echo form_open_multipart('admin/addNew') ?>
<table>
	<tr>
		<td>
			Tiêu đề
		</td>
		<td>
			<input type="text" name="title" value="" size="20">
		</td>
	</tr>
	<tr>
		<td>
			Danh mục
		</td>
		<td>
			<select>
				<?php 
					foreach($categories as $category)
					{
						echo '<option value="'.$category['id'].'">'.$category['category'].'</option>';
					}
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td>
			Hình ảnh
		</td>
		<td>
			<input type="file" name="image" value="" size="20"/>
		</td>		
	</tr>
	<tr>
		<td colspan="2">
			Chi tiết
		</td>
	</tr>
	<tr>	
		<td colspan="2">
			<textarea name="description" cols="30" rows="10" id="editor1">
			</textarea>
		</td>
		<script type="text/javascript">
			//<![CDATA[

				CKEDITOR.replace( 'editor1',
					{
						fullPage : true,
						extraPlugins : 'docprops'
					});

			//]]>
			</script>

	</tr>	
	<tr>
		<td colspan="2">
			<input type="submit" value="Submit" name="submitBtn">
			<input type="reset" value="Reset" name="reset" />
		</td>
	</tr>
</table>
</form>

